home *** CD-ROM | disk | FTP | other *** search
- package netscape.plugin.composer;
-
- class Composer {
- public static final int PLUGIN_FAIL = 0;
- public static final int PLUGIN_CANCEL = 1;
- public static final int PLUGIN_OK = 2;
- public static final int PLUGIN_NEWTEXT = 3;
- public static final int PLUGIN_EDITURL = 4;
- private int composerID;
- private int mozenv;
- private int callbackFunc;
-
- public Composer(int var1, int var2, int var3) {
- this.composerID = var1;
- this.callbackFunc = var2;
- this.mozenv = var3;
- }
-
- public void pluginFinished(int var1, Object var2) {
- (new ComposerCallback(this, var1, var2)).enqueue();
- }
-
- public void newText(String var1) {
- (new ComposerCallback(this, 3, var1)).enqueue();
- }
-
- public static void editDocument(String var0) {
- Composer var1 = new Composer(0, 0, 0);
- (new ComposerCallback(var1, 4, var0)).enqueue();
- }
-
- public void callback(int var1, Object var2) {
- this.mtCallback(this.composerID, this.callbackFunc, var1, var2);
- }
-
- private native void mtCallback(int var1, int var2, int var3, Object var4);
-
- public final int getMozenv() {
- return this.mozenv;
- }
- }
-